import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index/index'
import product from '@/components/product/product'
import loan from '@/components/loancenter/loan'
import personal from '@/components/personal/personal'
Vue.use(Router)

export default new Router({
	mode: 'history',
	routes: [

		{
			path: '/index',
			name: 'index',
			component: index
		}, {
			path: '/product',
			name: 'product',
			component: product
		}, {
			path: '/loan',
			name: 'loan',
			component: loan
		}, {
			path: '/personal',
			name: 'personal',
			component: personal
		}, {
			path: '/',
			redirect: 'index'
		}
	]
})